Skip to content

test: add apiv2 coverage for the manifest-create images query param#28984

Open
stefan8 wants to merge 1 commit into
podman-container-tools:mainfrom
stefan8:test/apiv2-manifest-create-images-query
Open

test: add apiv2 coverage for the manifest-create images query param#28984
stefan8 wants to merge 1 commit into
podman-container-tools:mainfrom
stefan8:test/apiv2-manifest-create-images-query

Conversation

@stefan8

@stefan8 stefan8 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

The libpod manifest-create images query parameter was never covered by the apiv2 tests. This adds cases for it on the v3 and v4 endpoints, and drops the stale required: true from that parameter in the swagger docs (the handler treats it as optional).

Checklist

  • Certify you wrote the patch or otherwise have the right to pass it on as an open-source patch by signing all commits (git commit -s).
  • Referenced issues using Fixes: #22258 in commit message (if applicable)
  • Tests have been added/updated (or no tests are needed)
  • Documentation has been updated (or no documentation changes are needed)
  • All commits pass make validatepr (format/lint checks)
  • Release note entered in the section below (or None if no user-facing changes)

Does this PR introduce a user-facing change?

None

@github-actions github-actions Bot added the kind/api-change Change to remote API; merits scrutiny label Jun 19, 2026
@stefan8 stefan8 force-pushed the test/apiv2-manifest-create-images-query branch 2 times, most recently from 93c4bf5 to 387ee2b Compare June 19, 2026 11:25
@stefan8

stefan8 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

/packit retest-failed

@packit-as-a-service

Copy link
Copy Markdown

[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore.

@Honny1 Honny1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

PTAL @podman-container-tools/podman-reviewers @podman-container-tools/podman-maintainers

Comment thread test/apiv2/15-manifest.at
EOF
)

# Create manifest lists and populate them at creation time via the `images`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking: I would add a case like images=containers-storage:$id_abc_image&images=containers-storage:$id_xyz_image with an assertion of '.manifests | length'=2.

@inknos

inknos commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

LGTM, same with @Honny1 's comment, if you could the case and push the update that would be great, but non blocking

The libpod manifest-create endpoint takes an "images" query parameter that
fills the new list at creation time, but 15-manifest.at never tested it.
Add cases that create a list with images= on both the v4
(/manifests/{name}, 201) and v3 (/manifests/create, 200) endpoints and
check the image ends up in the list.

Also drop the stale "required: true" from the images query parameter in the
swagger docs - the handler treats it as optional, and the existing create
tests (which omit it) already show that.

Fixes: podman-container-tools#22258

Signed-off-by: Grzegorz Szczepanczyk <g.szczepanczyk@getprintbox.com>
@stefan8 stefan8 force-pushed the test/apiv2-manifest-create-images-query branch from 387ee2b to 11daf50 Compare June 29, 2026 10:01
@stefan8 stefan8 requested a review from Honny1 June 29, 2026 10:02

@Honny1 Honny1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This failure seems to be unrelated. I rerun tests.

+ /home/ubuntu/golangci-lint-2.12.2-linux-amd64/golangci-lint run --build-tags=apparmor,seccomp,selinux
Error: utils/utils.go:16:2: could not import go.podman.io/storage/pkg/archive (/home/ubuntu/go/pkg/mod/go.podman.io/storage@v1.63.1-0.20260611132908-ea2c6da53f91/pkg/archive/archive.go:21:7: could not import github.com/klauspost/pgzip (/home/ubuntu/go/pkg/mod/github.com/klauspost/pgzip@v1.2.6/gunzip.go:26:2: could not import github.com/klauspost/compress/flate (../../../go/pkg/mod/github.com/klauspost/pgzip@v1.2.6/gunzip.go:26:2: github.com/klauspost/compress@v1.18.6: reading https://proxy.golang.org/github.com/klauspost/compress/@v/v1.18.6.zip: 403 Forbidden))) (typecheck)
	"go.podman.io/storage/pkg/archive"
	^
1 issues:
* typecheck: 1

@Honny1 Honny1 enabled auto-merge July 9, 2026 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/api-change Change to remote API; merits scrutiny

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants